<?php

namespace App\Policies;

use App\Models\Topics;
use App\Models\User;

class TopicsPolicy extends Policy
{
    public function delete(User $user,Topics $topic)
    {
        return $user->id == $topic->user_id;
    }

    public function update(User $user,Topics $topic)
    {
        return $user->id == $topic->user_id;
    }

    public function setTop(User $user,Topics $topic)
    {
        return false;
    }
}
